package org.cying.main.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 基本返回类型
 * @author Cying
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SampleResult<T> {

    private String url;

    private Integer status;

    private T data;

    private String message;

    public SampleResult(String url, Integer status) {
        this.url = url;
        this.status = status;
    }

    public SampleResult(String url, Integer status, T data) {
        this.url = url;
        this.status = status;
        this.data = data;
    }

}
